// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Core.MGet;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Core.MGet.Json.MultiGetResponseItemConverterFactory))]
public sealed partial class MultiGetResponseItem<TDocument> : Elastic.Clients.Elasticsearch.Union<Elastic.Clients.Elasticsearch.Core.Get.GetResult<TDocument>, Elastic.Clients.Elasticsearch.Core.MGet.MultiGetError>
{
	public MultiGetResponseItem(Elastic.Clients.Elasticsearch.Core.Get.GetResult<TDocument> value) : base(value)
	{
	}

	public MultiGetResponseItem(Elastic.Clients.Elasticsearch.Core.MGet.MultiGetError value) : base(value)
	{
	}

	public static implicit operator Elastic.Clients.Elasticsearch.Core.MGet.MultiGetResponseItem<TDocument>(Elastic.Clients.Elasticsearch.Core.Get.GetResult<TDocument> value) => new Elastic.Clients.Elasticsearch.Core.MGet.MultiGetResponseItem<TDocument>(value);
	public static implicit operator Elastic.Clients.Elasticsearch.Core.MGet.MultiGetResponseItem<TDocument>(Elastic.Clients.Elasticsearch.Core.MGet.MultiGetError value) => new Elastic.Clients.Elasticsearch.Core.MGet.MultiGetResponseItem<TDocument>(value);
}